home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 July
/
EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso
/
earcd
/
dev
/
amos
/
moreusel.lha
/
Zini2.AMOS
/
Zini2.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1997-04-15
|
859b
|
41 lines
Screen Open 0,320,256,32,0
Curs Off : Flash Off : Cls 0 : Hide
Double Buffer
Screen Swap
B=$100
For A=1 To 15
Colour A,B+(B/$200*$10) : Add B,$100
Next
B=1
For A=1 To 15
Colour A+16,B+(B/2*$110) : Inc B
Next
Dim P(29),P2(29)
For A=0 To 31
Set Bob A,1,%11111,
Next
A=0
Bob Update Off
Autoback 0
Do
X=Min(X Mouse-128,270) : Y=Y Mouse-50 : P(A)=X : Add A,1,0 To 29 : P(A)=Y : Add A,1,0 To 29
Bob Clear
B=A : Add B,-2,0 To 28
For C=15 To 1 Step -1
Bob C,P(B)+C,P(B+1)+C,C
Add B,-2,0 To 28
Next
If X<>XX Then SX=(XX-X)/4
If Y<>YY Then SY=(YY-Y)/4
XX=Max(10,Min(XX-SX,260)) : YY=Max(10,Min(YY-SY,190))
P2(AA)=XX
Add AA,1,0 To 29 : P2(AA)=YY
Add AA,1,0 To 29 : B=AA
Add B,-2,0 To 28
For C=15 To 1 Step -1
Bob C+15,P2(B)+C,P2(B+1)+C,C+15
Add B,-2,0 To 28
Next
Bob Draw : Screen Swap : Wait Vbl
Loop
End